<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li {
            list-style: none;
        }
        .test1 {
            /* border-collapse: collapse; */
        }
        .test1 li {
            float: left;
            height: 100px;
            width: 70px;
            border: 1px solid black;
            margin-left: -1px;
        }
        .test1 li:hover {
            position: relative;
            z-index: 1;
            border: 2px solid orange;
        }
        .test2 li{
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 1px solid black;
            text-align: center;
        }
        .test2 .up,
        .test2 .down {
            width: 50px;
        }
        .box {
            background-color: white;
            width: 200px;
            height: 30px;
            border: 1px solid red;
        }
        .box1 {
            position: relative;
            background-color: red;
            width: 110px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            color: white;
        }
        .box2 {
            position: absolute;
            right: 0;
            width: 0;
            height: 0;
            border-top: 30px solid red;
            border-right: 20px solid white;
        }
    </style>
</head>
<body>
    <!-- <ul class="test1">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul> -->
    <ul class="test2">
        <li class="up">上一页</li>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li class="down">下一页</li>
    </ul>
    <div class="box">
        <div class="box1">
            <span class="box2"></span>
            100$
        </div>
    </div>
</body>
</html>